// 测试前端代理的API
// 运行方式: node src/test-frontend-proxy.js

import fetch from 'node-fetch';

async function testFrontendProxy() {
  try {
    const response = await fetch('http://localhost:8080/chat/history?user_id=5');
    const data = await response.json();
    console.log('前端代理API响应:', data);
    return data;
  } catch (error) {
    console.error('前端代理API请求失败:', error);
    return null;
  }
}

testFrontendProxy(); 